find python path windows

33

>>> import os
>>> import sys
>>> os.path.dirname(sys.executable)
'C:\\Python25'
>>> import os
>>> import sys
>>> os.path.dirname(sys.executable)
'C:\\Python25'
python -c "import sys; print(sys.executable)"

Comments

Submit
0 Comments